home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-03-10 | 2.2 KB | 43 lines | [TEXT/MMCC] |
- /*****************************************************************************************************
- * *
- * FPB.h - Copyright 1993 - 1995 Chris Larson (larson@cs.ucla.edu), All rights reserved *
- * *
- * This is the private header file for a CDEF which mimics the progress bar used by the Finder. This *
- * file and compiled derivatives may be freely used within any freeware/shareware/postcardware/… as *
- * long as you mention my name in your credits. Neither this source nor its compiled derivatives are *
- * in the public domain and may not be use in any form in public domain software. Neither this source *
- * nor its compiled derivatives may be used in any form in a commercial product without the expressed,*
- * written consent of the author (me). *
- * *
- * Version 2.0 -- March 10, 1995. *
- * *
- *****************************************************************************************************/
-
- // Constants
-
- #define kIsColorPort 0xC000 // If these bits in GrafPort.portBits.rowBytes are set, its a CGrafPort.
-
- #define kBarberPoleStripeWidth 8
-
- // Function Prototypes
-
- pascal long main(short varCode, ControlHandle theControlHandle, short message, long param);
-
- void BeginDraw(ControlHandle theControlHandle, short varCode);
-
- void DrawNormalBar(ControlPtr theControl, RGBColorPtr barColor, RGBColorPtr bodyColor);
-
- void DrawBarberPoleBar(ControlPtr theControl, RGBColorPtr barColor, RGBColorPtr bodyColor);
-
- #ifdef powerc
-
- short CalculateBarBoundry(short boxLeft, short boxRight, ControlPtr theControl);
-
- #else
-
- asm short CalculateBarBoundry(short boxLeft, short boxRight, ControlPtr theControl);
-
- #endif
-
- RGBColor* FindColorInTable(CCTabHandle colorTable, short id);
-